import AppError from './AppError.js';
import { HTTP_STATUS } from '#src/constants/http.constants.js';

class AuthenticationError extends AppError {
  constructor(message = 'Authentication failed') {
    super(message, HTTP_STATUS.UNAUTHORIZED);
    this.name = 'AuthenticationError';
  }
}

export default AuthenticationError;